|LF_STANDARD|
|?TREE=&raquo; <a class=tree href="/CMD_SHOW_DOMAIN?domain=`DOMAIN`">`DOMAIN`</a> &raquo; <a class=tree href="/CMD_SSL?DOMAIN=`DOMAIN`">`LANG_SSL`</a>|
|?HELP_SECTION=`USER_HELPER`/ssl.html|
|HTM_USER_TOP|

<script language="javascript">
function copyCertificate(text)
{
	text.focus();
	text.select();
	if (document.all)
	{
		therange = text.createTextRange();
		therange.execCommand("Copy");
		alert('|LANG_CERT_COPIED|');
	}
}

function pasteCertificate(text)
{
	text.focus();
	text.select();

	if (document.all)
	{
		document.execCommand("Paste");

		with (document.info)
		for (var i=0; i < elements.length; i++)
			if (elements[i].type == 'radio')
				if ( (elements[i].name == "type") && (elements[i].value == "paste")  )
				{
					elements[i].checked = true;
				}
	}
}

function setRequest(onoff)
{
	if (document.info)
	{
		with (document.info)
		{
			for (var i=0; i < elements.length; i++)
				if (elements[i].type == 'radio')
					if ( elements[i].name == "request" )
					{
						if (onoff == 'on')
							elements[i].disabled = false;
						else
							elements[i].disabled = true;
					}
		}
	}
}

</script>

|*if !RESULT|
<!-- inicio bloque -->
<div class="bcp-bloque">
	<div class="bcpb-padding">

		<!-- inicio contenido bloque -->

		<!-- generales -->

		<div class="bcpbp-generales">
			<div class="alerta alerta-info">
				|RESULT|
			</div>
		</div>

		<!-- fin contenido bloque -->

	</div> <!-- fin padding -->
</div> <!-- fin bloque -->
|*endif|

|*if SSL_ON="yes"|
<!-- inicio bloque -->
<div class="bcp-bloque">
	<div class="bcpb-padding">

		<!-- inicio contenido bloque -->

		<!-- generales -->
		<div class="bcpbp-generales">

			<!-- texto -->
			<div class="bcpbpt-texto">
				<p>|LANG_SSL_ENABLED| <a href="/CMD_ADDITIONAL_DOMAINS?action=view&domain=|domain|">|LANG_SSL_HERE|</a></p>
			</div><!-- fin texto -->

		</div><!-- fin generales -->

		<!-- fin contenido bloque -->

	</div> <!-- fin padding -->
</div> <!-- fin bloque -->
|*else|
<!-- inicio bloque -->
<div class="bcp-bloque">
	<div class="bcpb-padding">

		<!-- inicio contenido bloque -->

		<!-- generales -->
		<div class="bcpbp-generales">

			<!-- texto -->
			<div class="bcpbpt-texto">
				<p>|LANG_SSL_DISABLED| <a href="/CMD_ADDITIONAL_DOMAINS?action=view&domain=|domain|">|LANG_SSL_HERE|</a></p>
			</div><!-- fin texto -->

		</div><!-- fin generales -->

		<!-- fin contenido bloque -->

	</div> <!-- fin padding -->
</div> <!-- fin bloque -->
|*endif|

<!-- inicio bloque -->
<div class="bcp-bloque">
	<div class="bcpb-padding">

		<!-- inicio contenido bloque -->

		<!-- titulo -->
		<div class="bcpbp-titulo">
			<h2>|LANG_SSL_CERTS|</h2>
		</div>
		<!-- fin titulo -->

		<!-- inicio content -->
		<div class="bcpbp-content">
			<!-- table -->
			<div class="box-da-table">
				<table class=list cellpadding=0 cellspacing=0>

					<form name=info action="CMD_SSL" method="post">
						<input type=hidden name=domain value="|DOMAIN|">
						<input type=hidden name=action value="save">

						<tr><td class=list align=center><input type=radio name=type value="server" |SERVERCHECKED| onClick="setRequest('off');"></td><td class=listtitle colspan=2>|LANG_USE_SERVERS|</td></tr>
						<tr><td class=list>&nbsp;</td><td class=list colspan=2>|LANG_USE_SHARED|</td></tr>

						<tr><td class=list align=center><input type=radio name=type value="create" onClick="setRequest('on');"></td><td class=listtitle colspan=2><input type=radio name=request value="no" checked disabled>|LANG_CREATE_SELF_SIGNED| &nbsp;&nbsp; <input type=radio name=request value="yes" disabled>|LANG_CREATE_CSR|</td></tr>
						<tr><td class=list>&nbsp;</td><td class=list>|LANG_COUNTRY|</td><td class=list><input type=input name=country size=2 maxlength=2></td></tr>
						<tr><td class=list>&nbsp;</td><td class=list>|LANG_STATE|</td><td class=list><input type=input name=province></td></tr>
						<tr><td class=list>&nbsp;</td><td class=list>|LANG_CITY|</td><td class=list><input type=input name=city></td></tr>
						<tr><td class=list>&nbsp;</td><td class=list>|LANG_COMPANY|</td><td class=list><input type=input name=company></td></tr>
						<tr><td class=list>&nbsp;</td><td class=list>|LANG_COMPANY_DIV|</td><td class=list><input type=input name=division></td></tr>
						<tr><td class=list>&nbsp;</td><td class=list>|LANG_COMMON_NAME|</td><td class=list><input type=input name=name value="www.|DOMAIN|"></td></tr>
						<tr><td class=list>&nbsp;</td><td class=list>|LANG_EMAIL|</td><td class=list><input type=input name=email></td></tr>
						<tr><td class=list>&nbsp;</td><td class=list>|LANG_KEYSIZE|</td><td class=list><select class=selectclass name=keysize><option selected>2048</option><option>4096</option></select></td></tr>
						<tr><td class=list>&nbsp;</td><td class=list>|LANG_CERT_TYPE|</td><td class=list><select class=selectclass name=encryption><option value="rsa" selected>SHA1</option><option value="sha256">SHA256</option></select></td></tr>
						<tr><td class=list align=center><input type=radio name=type value="paste" |PASTECHECKED| onClick="setRequest('off');"></td><td class=listtitle colspan=2>|LANG_PASTE|</td></tr>
						<tr><td class=list>&nbsp;</td>
							<td class=list align=center colspan=2>
								<textarea class="code_edit ssl_text" name=certificate rows=16>|KEY||CERTIFICATE|</textarea><br>
								<input type=button value="|LANG_PASTE_FROM|" onClick="pasteCertificate(document.info.certificate)">
								<input type=button value="|LANG_COPY_TO|" onClick="copyCertificate(document.info.certificate)"> |LANG_IE_ONLY|
							</td>
						</tr>
						<tr><td class=listtitle colspan=3 align=right>
							<input type=submit name=submit value="|LANG_SAVE|">
						</td></tr>
					</form>

				</table>
			</div> <!-- fin table -->
		</div> <!-- fin content -->

		<!-- link footer -->
		<div class="bcpbp-link--footer">
			<div class="bcpbplf-izq">
				<a href="/CMD_SSL?DOMAIN=|DOMAIN|&view=cacert">|LANG_CLICK_HERE|</a>
			</div>

			<div class="bcpbplf-der">
				test
			</div>
		</div> <!-- fin link footer -->

		<!-- fin contenido bloque -->

	</div> <!-- fin padding -->
</div> <!-- fin bloque -->




	<!-- inicio bloque -->
	<div class="bcp-bloque">
		<div class="bcpb-padding">

			<!-- inicio contenido bloque -->

			<!-- generales -->
			<div class="bcpbp-generales">

				<!-- texto -->
				<div class="bcpbpt-texto">
					<p>|LANG_NOTE|</p>
				</div><!-- fin texto -->

			</div><!-- fin generales -->

			<!-- fin contenido bloque -->

		</div> <!-- fin padding -->
	</div> <!-- fin bloque -->

|HTM_USER_BOTTOM|
